package com.gzhryc.shared_device.oem.code.profit.dao.enums;

public class BusinessOrderEnum {

    public static enum DivideState {

        Wait(1, "等待分成"), Executing(2, "分成中"), Finish(3, "分成完成")
        , Fail(4, "分成失败"), CancelExecuting(5, "撤销中");

        private Integer index;
        private String note;

        DivideState(Integer index, String note) {
            this.index = index;
            this.note = note;
        }

        public Integer index() {
            return index;
        }

        public String note() {
            return note;
        }

        public static String note(Integer index) {
            DivideState[] temp = DivideState.values();
            for (int i = 0; i < temp.length; i++) {
                DivideState item = temp[i];
                if (item.index.equals(index)) {
                    return item.note;
                }
            }
            return null;
        }
    }
}
